const mongoose = require("./db.js");

var UserSchema = mongoose.Schema({
    uid: String,

    account: String,
    pwd: String,
    email: String,

    img_head: String,//头像
    uname: String,//昵称
    sex: String,//性别
    birthday: String,//出生日期
    uinfr: String,//个人简介

    follows: Array,//关注
    fans: Array,//粉丝
    numOfLikes: Number,//被赞次数
    likes: Array,//收藏的文章和动态
    attentionFile: Array,//关注的专题的cid
    arrange: [{ //整理的内容
        fileName: String, //文件夹名称
    }],
});

module.exports = mongoose.model('User', UserSchema, 'user');